package qsoft.omanga.ui.custom;

import android.app.Dialog;
import android.content.Context;
import android.view.View;
import android.widget.RelativeLayout;

import qsoft.omanga.ui.R;

/**
 * 
 * @author sontt
 * 
 */
public class DialogEndPage extends Dialog implements
        android.view.View.OnClickListener {

    /**
     * 
     */
    private RelativeLayout rl2;
    /**
     * 
     */
    private RelativeLayout rl3;

    /**
     * 
     * @param context
     *            Context
     */
    public DialogEndPage(Context context) {
        super(context, android.R.style.Theme_Translucent_NoTitleBar);
        setContentView(R.layout.dialog_endpage);
        rl2 = (RelativeLayout) findViewById(R.id.rl2);
        rl2.setOnClickListener(this);
        rl3 = (RelativeLayout) findViewById(R.id.rl3);
        rl3.setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        if (v.equals(rl2)) {
            this.dismiss();
        } else if (v.equals(rl3)) {
            this.dismiss();
        }
    }

}
